package com.rover.crm.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.grid.ViewField;
import com.rover.system.entity.BaseEntity;

/**
 * 潜在客户
 */
@Entity
@Table(name = "crm_PotentialCustomers")
public class PotentialCustomers extends BaseEntity implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@ViewField
    private Integer id;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ViewField(header = "状态", width = 80, align = "center", type = "code", attributes = "潜在客户状态")
    private Integer state;

    @Column(unique = false, nullable = true)
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @ViewField(header = "姓名", width = 80, align = "center")
    private String name;

    @Column(length = 25, unique = false, nullable = true)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @ViewField(header = "手机", width = 80, align = "center")
    private String phone;

    @Column(length = 50)
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @ViewField(header = "办公电话", width = 80, align = "center")
    private String officePhone;

    @Column(length = 15)
    public String getOfficePhone() {
        return officePhone;
    }

    public void setOfficePhone(String officePhone) {
        this.officePhone = officePhone;
    }

    @ViewField(header = "公司", width = 80, align = "center")
    private String company;

    @Column(length = 50,nullable=false,unique=false)
    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @ViewField(header = "电子邮箱", width = 80, align = "center")
    private String email;

    @Column(length = 50)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @ViewField(header = "职务", width = 80, align = "center")
    private String position;

    @Column(length = 50,nullable=false,unique=true)
    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @ViewField(header = "热点", width = 80, align = "center", type = "checkcolumn")
    private Integer hotSpot;


    public Integer getHotSpot() {
        return hotSpot;
    }

    public void setHotSpot(Integer hotSpot) {
       if ( hotSpot==null)
           this.hotSpot =1;
       else
           this.hotSpot = hotSpot;
    }

    @ViewField(header = "职员数", width = 80, align = "center")
    private Integer numberOfEmployees;

    @Column()
    public Integer getNumberOfEmployees() {
        return numberOfEmployees;
    }

    public void setNumberOfEmployees(Integer numberOfEmployees) {
        this.numberOfEmployees = numberOfEmployees;
    }

    @ViewField(header = "来源", width = 80, align = "center", type = "code", attributes = "来源")
    private Integer source;

    @Column()
    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    @ViewField(header = "年营业额", width = 80)
    private BigDecimal annualTurnover;

    @Column(scale = 2)
    public BigDecimal getAnnualTurnover() {
        return annualTurnover;
    }

    public void setAnnualTurnover(BigDecimal annualTurnover) {
        this.annualTurnover = annualTurnover;
    }

    @ViewField(header = "行业", width = 80, align = "center", type = "code", attributes = "行业")
    private Integer industry;

    @Column()
    public Integer getIndustry() {
        return industry;
    }

    public void setIndustry(Integer industry) {
        this.industry = industry;
    }

    @ViewField(header = "注册资金", width = 80, align = "center")
    private BigDecimal registeredCapital;

    @Column(scale = 2)
    public BigDecimal getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(BigDecimal registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    @ViewField(header = "邮编", width = 80, align = "center",hidden=true)
    private String zip;

    @Column(length = 10)
    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    @ViewField(header = "网址", width = 80, align = "center",hidden=true)
    private String website;

    @Column(length = 50)
    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    @ViewField(header = "地址", width = 80, align = "center",hidden=true)
    private String     address;
    @Column(length = 50)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @ViewField(header = "备注", width = 80, align = "center",hidden=true)
    private String remark;

    @Column(length = 3000)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
